/* 病友圈页面样式 */
.sick-circle-container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 80px; /* 为发布按钮留出空间 */
}

/* 头部导航栏 */
.header-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8e8e8;
}

.custom-navbar {
  --height: 56px;
  --border-bottom: none;
  --background-color: transparent;
  --title-font-size: 18px;
  --title-font-weight: 600;
  --title-color: #333;
}

.custom-navbar :global(.adm-nav-bar) {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
}

.custom-navbar :global(.adm-nav-bar-back-arrow) {
  font-size: 20px;
  color: #333;
}

.custom-navbar :global(.adm-nav-bar-title) {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* 科室导航标签 */
.department-tabs {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 56px;
  z-index: 999;
}

.custom-tabs {
  --active-title-color: #1677ff;
  --active-line-color: #1677ff;
  --active-line-height: 3px;
  --active-line-border-radius: 2px;
}

.custom-tabs :global(.adm-tabs-tab) {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

.custom-tabs :global(.adm-tabs-tab-active) {
  color: #1677ff;
  font-weight: 600;
}

.custom-tabs :global(.adm-tabs-tab-line) {
  background: #1677ff;
}

/* 病友圈内容区域 */
.sick-circle-content {
  padding: 16px;
}

/* 病友圈列表 */
.sick-circle-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 病友圈项目 */
.sick-circle-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sick-circle-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 项目头部 */
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.item-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  flex: 1;
  margin-right: 12px;
}

/* 悬赏徽章 */
.bounty-badge {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 40px;
  justify-content: center;
}

.bounty-icon {
  font-size: 10px;
  margin-right: 2px;
}

.bounty-amount {
  font-size: 11px;
}

/* 发布时间 */
.item-time {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
}

/* 病症描述 */
.item-detail {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: justify;
}

/* 互动操作 */
.item-actions {
  display: flex;
  gap: 20px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.action-item:hover {
  background-color: #f5f5f5;
}

.action-item.loading {
  cursor: not-allowed;
  opacity: 0.7;
}

.action-item svg {
  font-size: 14px;
  color: #999;
  transition: all 0.3s ease;
}

.action-item svg.active {
  color: #ff6b6b;
  transform: scale(1.1);
}

.action-icon {
  font-size: 14px;
}

/* 加载更多 */
.load-more {
  text-align: center;
  margin-top: 20px;
}

.load-more-btn {
  width: 120px;
  height: 40px;
  border-radius: 20px;
  font-size: 14px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-text {
  font-size: 16px;
  color: #666;
  margin: 0 0 8px 0;
  font-weight: 500;
}

.empty-subtext {
  font-size: 14px;
  color: #999;
  margin: 0;
}

/* 加载状态 */
.loading-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.loading-state p {
  margin-top: 16px;
  color: #666;
  font-size: 14px;
}

/* 发布按钮 */
.publish-fab {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(22, 119, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.publish-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.4);
}

.publish-fab:active {
  transform: scale(0.95);
}

/* 响应式设计 */
@media (max-width: 375px) {
  .sick-circle-content {
    padding: 12px;
  }
  
  .sick-circle-item {
    padding: 16px;
  }
  
  .item-title {
    font-size: 15px;
  }
  
  .item-detail {
    font-size: 13px;
  }
  
  .publish-fab {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 25px;
    right: 16px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .sick-circle-container {
    background-color: #141414;
  }
  
  .header-navbar {
    background: #1f1f1f;
    border-bottom-color: #333;
  }
  
  .custom-navbar {
    --background-color: #1f1f1f;
    --title-color: #ecf0f1;
  }
  
  .custom-navbar :global(.adm-nav-bar-back-arrow) {
    color: #ecf0f1;
  }
  
  .department-tabs {
    background: #1f1f1f;
    border-bottom-color: #333;
  }
  
  .sick-circle-item {
    background: #1f1f1f;
    border-color: #333;
  }
  
  .item-title {
    color: #ecf0f1;
  }
  
  .item-detail {
    color: #bdc3c7;
  }
  
  .empty-state,
  .loading-state {
    background: #1f1f1f;
  }
}
